﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfStudy
{
    public class Calculator
    {
        public string Add(string arg1,string arg2)
        {
            double x = 0;
            double y = 0;
            double z = 0;
            if (Double.TryParse(arg1,out x) && Double.TryParse(arg2,out y))
            {
                z = x + y;

                return string.Concat(z);
            }
            return "Input Error!";
        }
    }
}
